package com.ysu.yybk.client;

import com.ysu.yybk.dto.WxLoginDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author ：lhw
 * @date ：Created in 2019/11/25 16:25
 */
@FeignClient(name = "wx",url = "https://api.weixin.qq.com/")
public interface WxLoginClient {

    @RequestMapping(method = RequestMethod.GET,value = "/sns/jscode2session?appid=wx4a216abbe02933f2&secret=7f21c2ebd6c7dc2d9d627b12d0528707&js_code={code}&grant_type=authorization_code")
    String getStudentOpenId(@PathVariable("code")String code);
}
